package org.dromara.crawler.mongo.mongodomain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mongoplus.annotation.ID;
import com.mongoplus.annotation.collection.CollectionName;
import com.mongoplus.enums.IdTypeEnum;
import lombok.Data;
import org.bson.Document;


import java.time.LocalDate;
import java.util.Date;
import java.util.List;


@Data
@CollectionName(value = "hotspot_event",database = "NEWS")
public class HotspotEvent {

    @ID(type = IdTypeEnum.OBJECT_ID)
    private String id;

    private String eventId;

    private List<String> newsIds;

    private String content;

    private String searchKeywords;

    private List<String> keywords;

    private Document eventTime;

    private String eventTitle;

    private Double score;

    private int newsCount;

    @JsonFormat(shape = JsonFormat.Shape.STRING, locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdAt;
    @JsonFormat(shape = JsonFormat.Shape.STRING, locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedAt;

    private Document report;



}
